﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace TZReportUplaodForm
{
    static class Program
    {
        /// <summary>
        /// 应用程序的主入口点。
        /// </summary>
        [STAThread]
        static void Main()
        {

            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);


            if (System.Diagnostics.Process.GetProcessesByName(System.Diagnostics.Process.GetCurrentProcess().ProcessName).Length > 1)
            {
                MessageBox.Show($"已有程序运行，请勿重复运行！{ System.Diagnostics.Process.GetCurrentProcess().ProcessName}", "提示信息");
            }
            else
            {
                Application.Run(new tzReportForm());
            }
          
        }
    }
}
